﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Devdream.Models
{
    /// <summary>
    /// 用户配置类
    /// </summary>
   public class UserConfig
    {
        [Key]
        public int ConfigID { get; set; }
        /// <summary>
        /// 启用注册
        /// </summary>
        [Display(Name="启用注册")]
        [Required(ErrorMessage="必填")]
        public bool Enabled { get; set; }
        /// <summary>
        /// 禁止用户的用户
        /// 用户之间用|隔开
        /// </summary>
        /// 
        [Display(Name = "禁止用户的用户")]
        public string ProhibitUserName { get; set; }
        /// <summary>
        /// 启用管理员验证
        /// </summary>
        [Display(Name="启用管理员验证")]
        [Required(ErrorMessage="必填")]
        public bool EnableAdminVerify { get; set; }
        /// <summary>
        /// 启用邮箱验证
        /// </summary>
        /// 
        [Display(Name="启用邮箱验证")]
        [Required(ErrorMessage="必填")]
        public bool EnableEmailVerify { get; set; }
        /// <summary>
        /// 默认用户组id
        /// </summary>
        /// 
        [Display(Name="默认用户组id")]
        [Required(ErrorMessage="必填")]
        public int DefaultGroupId { get; set; }
    }
}
